package com.calm.singleton

import android.util.Log

class KLazySyncSingleton {
    companion object {
        private var INSTANCE:KLazySyncSingleton? = null
        @Synchronized
        fun getInstance():KLazySyncSingleton{
            if(INSTANCE == null){
                INSTANCE = KLazySyncSingleton()
            }
            return INSTANCE!!
        }
    }
    fun sayHello(name:String){
        Log.e(this::class.java.simpleName,"Hell $name,nice to meet you !")
    }
}